package com.ibeeking.found.msg.rest.service;

import com.ibeeking.found.msg.service.common.dos.WxMpFansDO;
import com.ibeeking.found.msg.service.common.dos.WxMpGroupMessageDO;
import com.ibeeking.found.msg.service.common.param.WxMpGroupMessageParam;
import me.chanjar.weixin.mp.bean.result.WxMpMassSendResult;
import me.chanjar.weixin.mp.bean.result.WxMpMassUploadResult;

import java.util.List;
import java.util.Map;

/**
 * @ClassName IMsgService
 * @Description
 * @Author ibeeking
 * @Date 2021-02-06 16:15
 **/
public interface IMsgService {
    void sendMessageByOpenId(List<WxMpFansDO> fans, WxMpGroupMessageParam param, WxMpMassUploadResult wxMpMassUploadResult, WxMpGroupMessageDO wxmpGroupMessageDO, String key);

    Integer getCount(String key);

    String getJsonString(WxMpGroupMessageParam param, List<String> ids);

    WxMpMassSendResult massMessageSend(String appId, String json, boolean allSend);

    WxMpMassSendResult getSendResult(Map map);

    void saveSendInfo(int index, WxMpMassSendResult result, WxMpGroupMessageDO wxmpGroupMessageDO, Integer messageType, List<WxMpFansDO> fans);

    String newTypeStr2OldTypeStr(String newType);

    int newType2OldType(String newType);

    String OldType2NewType(Integer newType);
}
